﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="BatchBaseInfo.aspx.cs"
    Inherits="Sagacity.NC.Web.BaokaoManager.HighSchool.BatchBaseInfo" %>

<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../resources/css/main.css" />
    <script type="text/javascript" src="../../resources/JS/ExampleTab.js"></script>
 <script language="javascript" type="text/javascript">
     
        function getBatchInfo(ResouceId) {
             var url = "BatchOtherInfo.aspx";
             var style = 2;
             var BResourceId = document.getElementById("hidBResouceId").value;
             var batchId = document.getElementById("hidbatchId").value;
            if (ResouceId == BResourceId)
                 url = "BatchDetail.aspx";

             url += "?ResourceId=" + ResouceId + "&batchId=" + batchId + "&showStyle=" + style;

            tabBatchTabs.activeTab.autoLoad.url = url;
            tabBatchTabs.activeTab.reload();
        }
        
        
    </script>
    
        <script type="text/javascript">
            /*----打开或折叠处于西方位置的Panel，true，折叠；false，打开------*/
            function openOrCollapseWest(oc) {
                oc ? pnlWest.collapse() : pnlWest.expand();
            }
    </script>
</head>
<body>
    <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
    <form id="form1" runat="server">
    <div>
       <asp:HiddenField ID="hidStyleId" Value="5" runat="server" />
       <asp:HiddenField ID="hidBResouceId" runat="server" />
       <asp:HiddenField ID="hidbatchId" runat="server" />
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <West Collapsible="true" CollapseMode="Mini" Split="true">
                    <ext:Panel ID="pnlWest" BodyStyle="overflow-x:hidden;" runat="server" AutoScroll="true"
                        Header="false" Border="false" Width="220">
                        <Body>
                             <table style="width: 100%;">
                                <tr style="width: 100%;">
                                    <td align="center">
                                        <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                                <tr style="height: 10px;">
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <table style="width: 100%;">
                                <tr style="width: 100%;">
                                    <td align="center">
                                        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                                <tr style="height: 10px;">
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <table style="width: 100%;">
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <ItemTemplate>
                                        <tr style="height: 25px; width: 100%;">
                                            <td align="center" id="td<%#Eval("Id") %>" onclick="javascript:getBatchInfo(<%#Eval("Id") %>);">
                                                <span style="cursor: pointer">
                                                    <%#Eval("ResourceName")%></span>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </Body>
                    </ext:Panel>
                </West>
                <Center>
                    <ext:TabPanel ID="tabBatchTabs" runat="server" ActiveTabIndex="0" EnableTabScroll="true">
                        <Tabs>
                            <ext:Tab ID="tabBatchInfo" runat="server" Icon="User" Title="批次信息设置" AutoScroll="true">
                                <AutoLoad Mode="IFrame" NoCache="true" Url="" ShowMask="true" MaskMsg="加载批次信息设置...">
                                </AutoLoad>
                            </ext:Tab>
                        </Tabs>
                        <Plugins>
                            <ext:TabCloseMenu ID="TabCloseMenu1" runat="server" />
                        </Plugins>
                    </ext:TabPanel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort>

    </div>
    </form>
</body>
</html>
